import React, { Component } from 'react'

export default class FindList extends Component {
    constructor(){
        super()
        this.state = {
            text:'查找列表',
        }
    }
    // state = {
    //     text:'查找列表',
    //     other:'下面的文字'
    // }
    render() {
        return (
            <div>
                {this.state.text}
                <button onClick={()=>{
                    this.state.text = '我改变了哦'
                    this.setState({
                        text:'我改变了0'
                    })
                }}>点击切换1</button>
                <button>点击切换2</button>
            </div>
        )
    }
}
